﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using BLL;

public partial class Reprb_Cydrb : System.Web.UI.Page
{
    string strApp = "";

    BLLBwjc bw = new BLLBwjc();

    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            DateTime dt = System.DateTime.Now;

            this.Date1.Value = dt.AddMonths(0).ToString("yyyy-MM");

            strApp = bw.retBwjcByDateByFD("yb", DateTime.Parse(this.Date1.Value).ToString("yyyy-MM-01 H:mm:ss"), this.drpUnit.SelectedValue);

            this.show.InnerHtml = strApp;
        }
    }

    protected void btnChaXun_Click(object sender, EventArgs e)
    {
        DateTime dtInput = Convert.ToDateTime(this.Date1.Value);

        strApp = bw.retBwjcByDateByFD("yb", dtInput.ToString("yyyy-MM-01 H:mm:ss"), this.drpUnit.SelectedValue);

        this.show.InnerHtml = strApp;
    }
}
